import Layout from '@/layout'
export default [
  {
    path: '/major',
    component: Layout,
    redirect: '/major/index',
    name: 'major',
    meta: { title: '专业管理', icon: 'nested', roles: ['院校'] },
    children: [
      {
        path: 'index',
        name: 'major-index',
        component: () => import('@/views/major/index'),
        meta: { title: '专业', icon: 'nested' }
      },
      {
        path: 'create',
        name: 'major-create',
        component: () => import('@/views/major/create'),
        meta: { title: '添加专业', icon: 'edit' }
      },
      {
        path: ':college/college/:catalog/catalog/:major/major',
        name: 'major-edit',
        hidden: true,
        component: () => import('@/views/major/edit'),
        meta: { title: '编辑专业', icon: 'edit', activeMenu: '/major/index' }
      }
    ]
  }
]
